<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix ="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<jsp:include page="/jsp/part/header.jsp" />
	<title>Modification d'un compte client</title>
</head>
<body>	
	<div class="contenu">
		<jsp:include page="/jsp/part/menu.jsp" />
		<div class="container-fluid">
			<div class="row-fluid">
				<div id="left_menu" class="span3">
					<jsp:include page="/jsp/part/action_menu.jsp" />
				</div>
				<div class="span9">
					<!--  Popup -->
					<c:if test="${msg != null }" >
						<div class="alert alert-error popup_alert fade in" >
				 			<button class="close" data-dismiss="alert" >x</button>
							${msg}
						</div>
					</c:if>
					<h2>Modification d'un compte fournisseur</h2>
					<form class="well form-vertical" action=".?action=edit&id=${provider.id}" method="post">
						<label class="control-label" >Prenom</label>
						<input type="text" name="first_name" placeholder="Prenom" value='${provider.firstName}' ><br>

						<label class="control-label" >Nom</label>
						<input type="text" name="last_name" placeholder="Nom" value='${provider.lastName}'><br>
						
						<label class="control-label" >Email</label>
						<input type="text" name="email" placeholder="Email" value='${provider.emailAdress}'><br>

						<label class="control-label" >Telephone</label>
						<input type="text" name="phone" placeholder="Telephone" value='${provider.phoneNumber}'><br>
						
						<label class="control-label" >Adresse</label>
						<textarea name="adress" placeholder="Adresse" > ${provider.address} </textarea>
						
						<label class="control-label" >Ville</label>
						<input type="text" name="town" placeholder="Ville" value='${provider.city}'><br>						
						
						<label class="control-label" >Pays</label>
						<input type="text" name="country" placeholder="Pays" value='${provider.country}'><br>	
						
						 <button type="submit" class="btn btn-primary">Sauvegarder changement</button>
					</form>
				</div>
			</div>
		</div>
	</div>

</body>
</html>